package fileanalyser

import (
	"encoding/json"
	"os"
)

func GetJsonData(file_path string) ([]map[string]interface{}, error) {
	json_content, err := os.ReadFile(file_path)
	if err != nil {
		return nil, err
	}

	var result []map[string]interface{}
	err = json.Unmarshal(json_content, &result)
	if err != nil {
		return nil, err
	}

	return result, nil
}